package com.controller;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

@RequestMapping("indexController")
@Controller
public class indexController {

	public indexController(){
		System.out.println("indexController 实例化");
	}
	
	@RequestMapping(value="getIndex",produces="application/json;charset=UTF-8",method={RequestMethod.GET,RequestMethod.POST})
	@ResponseBody
	public String getIndex(HttpServletRequest req){
		
		return "正常";
	}
}
